﻿//@include ../../assets/js/Illus-lib.js
//@include ./scripts/json-stringify.js
//@include ./scripts/jetta-rule.js
$.data = {}

var checkFormat = function(option) {
    var fmtOption = option.fmtOption.objectParser()
    try {
        $.artboards.each(function(artboardSizes) {
            // putJettaMobFormat(artboardSizes)
            putJettaDigitalFormat(artboardSizes, fmtOption)
            putJettaOutdoorFormat(artboardSizes, fmtOption)
            putJettaPrintFormat(artboardSizes, fmtOption)
            // alert(sizes.stringify())

        }, !fmtOption.isAll.on)

        // var fmtVwRatio = fmtOption.fmtVwRatio
        // alert(fmtVwRatio.val + typeof fmtVwRatio.val)
        // alert(fmtVwRatio.on + typeof fmtVwRatio.on)
        // alert(fmtOption.stringify())
        // alert(fmtOption.isAll.on)
        // alert('isVLogo; ' + fmtOption.isVLogo.on)

    } catch (error) {
        alert('[EVENT] checkFormat:' + error)
    }

}




